import request from '@/utils/request.ts'

export default {

    add(data) {
        return request({
            url: '/res/template/add',
            method: 'post',
            data,
        })
    },
    delete(id) {
        return request({
            url: '/res/template/delete',
            method: 'delete',
            params: {id: id},
        })
    },
    queryByName(params) {
        return request({
            url: '/res/template/queryByName',
            method: 'get',
            params: params,
        })
    },

}
